﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using CommandMgr.Sdk;

namespace CommandMgr.Sdk.Test
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestCommandMgrSdk()
        {
            CommandMgr commMgr = new CommandMgr("http://10.210.2.13/CommandMgr/api");
            commMgr.Queue("Foo");
            //bool targetResult = commMgr.Dequeue("Foo");
            //Assert.AreEqual(true, targetResult,"Command was not found on queue.");
            //targetResult = commMgr.Dequeue("Foo");
            //Assert.AreEqual(false, targetResult, "Command should have already been removed from queue");
        }

        [TestMethod]
        public void TestCommandMgrSdkListComm()
        {
            CommandMgr commMgr = new CommandMgr("http://10.210.2.13/CommandMgr/api");
            List<Command> commands = commMgr.ListCommands();
            //bool targetResult = commMgr.Dequeue("Foo");
            //Assert.AreEqual(true, targetResult,"Command was not found on queue.");
            //targetResult = commMgr.Dequeue("Foo");
            //Assert.AreEqual(false, targetResult, "Command should have already been removed from queue");
        }

    }
}
